from random import random

from libs.ronglian_sms_sdk import SmsSDK

accId = '8aaf0708809721d001812ed2058333c6'
accToken = '49f99e95df6a4c7f883e32b46493533e'
appId = '8aaf0708809721d001812ed2066133cd'

sdk = SmsSDK(accId, accToken, appId)
sms_code = '%06d' % random.randint(0, 999999)
data = (sms_code, '2')
mobile = '16605523478'
sdk.sendMessage('1', mobile, data)
